package com.elite.security.web;

import org.springframework.security.web.SecurityFilterChain;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

@Component
public class SingleFilterChain<T> {


	private volatile List<T> filterChains;


	private final ReadWriteLock lock = new ReentrantReadWriteLock();

	public SingleFilterChain(List<T> filterChains) {
		this.filterChains =filterChains;
	}

	public ReadWriteLock getLock() {
		return lock;
	}

	public void setFilterChains(List<T> filterChains) {
		this.filterChains =filterChains;
	}

	public List<T> getFilterChains() {
		return filterChains;
	}
}
